package Window;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class open extends JFrame{

    public open(){
        setSize(300,290);
        setVisible(true);

        JTextArea k=new JTextArea();

        JLabel j=new JLabel("信息");

        /*JLabel a=new JLabel("编号"); //实例化JLabel对象
        JLabel b=new JLabel("名称");
        JLabel c=new JLabel("简介");*/
        JLabel h=new JLabel("结点");

        /*JTextField d=new JTextField(15);
        JTextField e=new JTextField(15);
        JTextField f=new JTextField(30);*/
        JTextField i=new JTextField(15);

        JButton g=new JButton("确定");

        Container mk=getContentPane();

        /*mk.add(a);
        mk.add(b);
        mk.add(c);
        mk.add(d);
        mk.add(e);
        mk.add(f);*/
        mk.add(g);
        mk.add(h);
        mk.add(i);
        mk.add(j);
        mk.add(k);

        setBounds(300,300,300,290);//设置窗体的长宽各为300、300  让其显示在左上方的300、300处
        mk.setLayout(null);

      /*  a.setBounds(10,40,50,18);
        b.setBounds(10,60,50,18);
        c.setBounds(10,80,50,18);
        d.setBounds(60,40,200,18);
        e.setBounds(60,60,200,18);
        f.setBounds(60,80,200,18);*/
        g.setBounds(110,180,60,30);
        h.setBounds(10,20,50,18);
        i.setBounds(60,20,200,18);
        j.setBounds(10,40,50,18);
        k.setBounds(10,60,300,100);



        
        g.addActionListener(new ActionListener(){//对注册按钮添加监听事件
            @SuppressWarnings("deprecation")
            @Override
            public void actionPerformed(ActionEvent arg0) {
                // TODO Auto-generated method stub
                if (i.getText().trim().equals("0")){

                }
            }

        });

    }

}

